All Questions
Tagged with entity-frameworkunit-testing
6 questions
1vote
1answer
707views
Web API with IoC and database integration tests [closed]
I've made integration tests for a major part of my application. I test my dependency injection is set up correctly, creating controllers with it's dependencies going all the way to the database (using ...
2votes
2answers
133views
Sales Tax problem (new version)
I was told that this version is too simple, that need something more complex. I added Entity Framework. Here my code: ...
3votes
1answer
3kviews
Entity Framework 7 In Memory Database - Unit Testing using xUnit
I'm using EF7 with In-Memory database and xUnit for repository testing. I'd like to know if it's a good practice initializing the database in this manner for reuse it in every test method, ...
8votes
1answer
21kviews
EF Generic Repository + Unit of Work pattern with support for Async
I'm working on a generic repository using EF 6 code first and trying to following the Unit of Work pattern. Unity is being used to inject my repositories, and I'm trying to get everything supporting ...
14votes
2answers
5kviews
Repository and Controller tests
Lately I have been researching how to best unit test an EF repository and given a properly tested repository, what to test in the controller. My research did not reveal many sound examples or ...
6votes
2answers
295views
Repository implementation
I have a repository called PostsRepository: ...